// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuetify from 'vuetify'
import axios from 'axios'
import 'vuetify/dist/vuetify.min.css'
import util from './util'

Vue.use(util)
Vue.config.productionTip = false
Vue.use(Vuetify)
axios.defaults.baseURL = 'http://192.168.3.104:8080/wisdomeatery'

/* eslint-disable no-new */
// new一个实例就要赋值给一个对象 Vue中不需要赋值 用以上注释跳过eslint的验证

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  created: function () {
    axios.defaults.headers.common['token_id'] = '123'
  },
  computed: {
    reversedMessage: function () {
      return this.message.split('').reverse().join('')
    }
  }
})
